const milkyTeaDao = require('../dao/milkyTeaDao');


//获取奶茶数据
module.exports.find = async function(page,searchParams){
   return await milkyTeaDao.find(page,searchParams);
}

// id查找
module.exports.findById = async function(id){
   return await milkyTeaDao.findById(id);
}

// 添加
module.exports.insert = async function(milkyTea){
   return await milkyTeaDao.insert(milkyTea);
}

// 删除
module.exports.delete = async function(id){
   return await milkyTeaDao.delete(id);
}

// 修改
module.exports.update = async function(milkyTea){
   return await milkyTeaDao.update(milkyTea);
}

